import java.rmi.*;

public class ServerDriver
{
    private static final String SERVERNAME = "//localhost:1099/c4";


    /**
     * The entry point
     *
     * @param args  The command line arguments
     */
    public static void main(String[] args)
    {
       TransactionManager    jmuServer;

       System.setProperty("java.security.policy", "c4.policy");        
       System.setSecurityManager(new RMISecurityManager());

       try 
       {
          jmuServer = new TransactionManager();
          Naming.rebind(SERVERNAME, jmuServer);
       }
       catch (Exception e) 
       {
          System.out.println("\n\n\tYou must start the RMI Registry!!");
          System.exit(1);
       }
    }
}